package edu.study.user.api;

import java.util.List;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import edu.study.api.common.dto.BaseRespDto;
import edu.study.api.common.dto.RespDto;
import edu.study.user.api.dto.RoleAuthDto;
import edu.study.user.api.req.roleauth.QueryRoleAuthReq;
import edu.study.user.api.req.roleauth.RoleAuthReq;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 1.要么没有入参，要么封装成req对象
 * 2.返回类型：BaseRespDto RespDto<T> PageRespDto<T> 三种
 */
@RequestMapping("/api/user/roleAuthApi")
@Api(value = "/api/user/roleAuthApi", tags = { "角色权限相关接口-1.0" })
public interface RoleAuthApi {
	
	@ApiOperation(value = "新增角色权限")
    @RequestMapping(value = "addRoleAuth", method = {RequestMethod.POST})
    BaseRespDto addRoleAuth(@RequestBody RoleAuthReq req);
    
    @ApiOperation(value = "删除角色权限")
    @RequestMapping(value = "deleteRoleAuth", method = {RequestMethod.POST})
    BaseRespDto deleteRoleAuth(@RequestBody RoleAuthReq req);
    
    @ApiOperation(value = "修改角色权限")
    @RequestMapping(value = "modifyRoleAuth", method = {RequestMethod.POST})
    BaseRespDto modifyRoleAuth(@RequestBody RoleAuthReq req);
	
    @ApiOperation(value = "查询角色权限列表")
    @RequestMapping(value = "queryRoleAuthList", method = {RequestMethod.POST})
    RespDto<List<RoleAuthDto>> queryRoleAuthList(@RequestBody QueryRoleAuthReq req);
}
